﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="true" CodeBehind="AddNewUser.aspx.cs" Inherits="SDZJ.ManagerView.SystemManager.AddNewUser" %>

<%@ Register assembly="SDZJ" namespace="SDZJ.ExtendControls" tagprefix="cc1" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>人员选择</title>
    <link href="../style/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1-vsdoc.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>        
     <script type="text/javascript"  src="../../Scripts/jquery-1.5.1.min.js"></script>
     <script type="text/javascript"  src="../../Scripts/jquery-ui-1.8.11.custom.min.js"></script>

    <script language="javascript" type="text/javascript">

        var prevselitem = null;
        function selectx(row)
        {
            if (prevselitem != null)
            {
                prevselitem.style.backgroundColor = '#ffffff';
            }
            row.style.backgroundColor = '#E0FFFF';
            prevselitem = row;
        }
        function closeDiv() {

            parent.flashPage();
            parent.closewin();
        }
        function AddSuccess(flag) 
        {
            if (flag==1)
                alert("添加成功");
            else
                alert("该用户已经存在");
        }
        function checkvalue()
        {

            if ($("#UserName").val() == "") {
                alert("请输入用户名称！");
                return false;
            }
            if ($("#NickName").val() == "") {
                alert("请输入昵称！");
                return false;
            }
            if ($("#Password1").val() == "") {
                alert("请输入密码！");
                return false;
            }
            if ($("#Password2").val() == "") {
                alert("请输入确认密码！");
                return false;
            }
            if ($("#Password1").val()!= $("#Password2").val()) 
            {
                alert("两次输入的密码不一致");
                return false;
            }
            return true;
        }
         </script>
    <style>
        input.go {width:22px;border:0;cursor:pointer;height:18px;background:url(../images/go.gif) no-repeat;}
        rowStyle
        {
            width:100%;
            height:30px	
        }
        .tdLeft
        {
            width:50%;	
            height:20px;
            text-align:right;
            vertical-align:middle;
        }
        .tdRight
        {
            width:50%;	
            height:20px;
            text-align:left;
            vertical-align:middle;
        }
        .textLen
        {
        	width:150px;	
        }
        
    </style>
</head>
<body >
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
                            </asp:ScriptManager>
    <table style="width:600px;height:282px;" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="width:350px;" height="282" valign="top">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" >
                        <tr>
                        <td width="100%" height="25"  class="dh_top">
                       
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">    
                           <ContentTemplate>
                             &nbsp;搜索:
                             <asp:TextBox ID="searchKey" runat="server"></asp:TextBox>
                             &nbsp;
                              <asp:ImageButton ID="ImageButton1" width="51" height="23" hspace="5" border="0" align="absmiddle" 
                                   runat="server" ImageUrl="~/ManagerView/images/button08.gif" OnClick="Button1_Click"/>
                           </ContentTemplate> 
                             </asp:UpdatePanel>
                           
                            
                        </td>
                        </tr>
                        <tr>
                        <td width="100%" height="235" style="background:#FFFFFF" align="center" valign="top">
                           
                           <asp:UpdatePanel ID="UpdatePanel1" runat="server">    
                           <ContentTemplate>
                            <asp:GridView ID="GridView1" runat="server" CssClass="list" 
                                OnRowDataBound="gvInfo_RowDataBound" DataKeyNames="STUDENTID,BRANCH_SCHOOL_ID" 
                                AutoGenerateColumns="False" AllowSorting="False" 
                                style="width:100%;height:100%"  border="0" cellpadding="0" cellspacing="0" 
                                onrowcreated="GridView1_RowCreated" 
                                onselectedindexchanged="GridView1_SelectedIndexChanged">
                                <Columns>
                                    <asp:BoundField HeaderText="警号" DataField="STUDENT_NUMBER"/>
                                    <asp:BoundField HeaderText="姓名" DataField="Name"/>
                                    <asp:BoundField HeaderText="所在分中心" DataField="BRANCH_SCHOOL_NAME"/>
                                </Columns>
                                <selectedrowstyle backcolor="LightCyan" />
                            </asp:GridView>
                             </ContentTemplate> 
                             </asp:UpdatePanel> 
                        </td>
                        </tr>
                        <tr>
                        <td width="100%"  valign="middle">
                            <div " class="page">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="10" FirstPageText="<img src=../../images/page03.gif border=0 valign=middle hspace=3>"
                                    LastPageText="<img src=../../images/page04.gif border=0 valign=middle hspace=3>"
                                    NextPageText="<img src=../../images/page02.gif border=0 valign=middle hspace=3>"
                                    PrevPageText="<img src=../../images/page01.gif border=0 valign=middle hspace=3>"
                                    ShowCustomInfoSection="Left" ShowPageIndex="False"  TextAfterPageIndexBox="页"  TextBeforePageIndexBox="转到"
                                    AlwaysShow="True"  CustomInfoClass="pageLine" OnPageChanged="AspNetPager_PageChanged"
                                    ShowPageIndexBox="Always" CustomInfoSectionWidth="" Wrap="False" SubmitButtonClass="go"
                                    SubmitButtonStyle="line-height:28px" SubmitButtonText=" ">
                            </webdiyer:AspNetPager>
                             </div>
                        </td>
                        </tr>
                    </table>
            </td>
            <td style="width:250px;height:282px;">
                    <div style="width:250px;height:100%;vertical-align:middle;text-align:center;">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">    
                           <ContentTemplate>
                    <fieldset >
                    <table border="0" style="width:100%;height:100%">
                    <tr>
                            <td class="tdLeft" colspan="2">
                            
                                <div class="set_bg" style="padding-top:3px;">
                                    <asp:ImageButton ID="ImageButton2" runat="server" align="absmiddle" border="0" 
                                        height="23" hspace="5" ImageUrl="~/ManagerView/images/button04.gif" 
                                        onclick="Button2_Click" OnClientClick="return checkvalue();" width="51" />
                                    <img align="absmiddle" height="23" hspace="5" onclick="closeDiv()" 
                                        src="../images/button05.gif" width="51"> </img></div>
                            </td>
                        </tr>
                    <tr>
                        <td class="tdLeft">用户名:</td>
                        <td class="tdRight">
                            <asp:TextBox id="UserName"  class="textLen" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdLeft">昵称:</td>
                        <td  class="tdRight">
                             <asp:TextBox id="NickName" class="textLen" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdLeft">密码:</td>
                        <td  class="tdRight">
                            <asp:TextBox id="Password1" TextMode="Password" class="textLen" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdLeft">确认密码:</td>
                            <td  class="tdRight">
                            <asp:TextBox id="Password2" TextMode="Password" class="textLen" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdLeft">
                        </td>
                        <td class="tdRight">
                            <asp:CheckBox ID="CheckBox1" runat="server" Text="是否禁止"/>
                         </td>
                    </tr>
                    <tr>
                        <td class="tdLeft">
                        </td>
                        <td class="tdRight">
                            <asp:CheckBox ID="CheckBox3" runat="server" Text="是否锁定"/>
                        </td>
                    </tr
                    <tr>
                    </tr>
                    <tr>
                        <td colspan="2"> 
                            <hr />
                        </td>
                        
                        <tr>
                            <td colspan="2" height="60">
                                <div style="height:60px">
                                </div>
                            </td>
                        </tr>
                    </tr>
                </table> </fieldset>
                </ContentTemplate> 
                             </asp:UpdatePanel> 
                </div>
            </td>
        </tr>       
    </table>

        <input type="hidden" id="txtCurrentPage" name="txtCurrentPage" runat="server" value="1"/>
    </form>
</body>
</html>
